wayland: do not clamp anchor values
authorOlivier Fourdan <ofourdan@redhat.com>
Wed, 1 Feb 2017 08:41:07 +0000 (09:41 +0100)
committerOlivier Fourdan <ofourdan@redhat.com>
Mon, 6 Feb 2017 08:29:38 +0000 (09:29 +0100)
commitafa78fcffe7785425ed188a0cde52df68a6d3b88
tree26d934b4f2424be074f152fe9096de4b44f2ec1a
parent705fc628409e73839a5dae30f4156bfee08c43ba
wayland: do not clamp anchor values

Clamping the anchor values as introduced in commit 9a5ffcd to fix bug
777176 breaks menu positioning.

By keeping the anchors rectangle size greater than zero, we end up
deducting some positive value from the original position, so there is no
need to clamp() actually, keeping the values positive is enough and
avoids the issue with menu positioning on the menubar.

An additional benefit is to make the code a lot simpler.

https://bugzilla.gnome.org/show_bug.cgi?id=778009
gdk/wayland/gdkwindow-wayland.c